package com.maxmlr.mybatisplus.common.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * 
 * @Package com.maxmlr.common.config
 * @ClassName WebMvcConfig
 * @Description webMvc 配置
 * @author max
 * @since 2018年12月15日 下午6:15:05 
 * @version 1.0
 * @Copyright Copyright (c) 2018: www.maxmlr.com.
 */
@Configuration
class WebMvcConfig extends WebMvcConfigurerAdapter {
	@Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
		registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");

		registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
	}

}
